package com.spring.aclservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author testjava
 * @since 2020-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("acl_role")
public class Role implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.ID_WORKER_STR)
  private String id;

  private String roleName;

  private String roleCode;

  private String remark;

  private Boolean isDeleted;

  @TableField(fill = FieldFill.INSERT)
  private Date gmtCreate;

  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date gmtModified;
}
